package com.doxiaopu.students.user.entity;

import com.doxiaopu.students.component.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description= "用户信息")
public class User extends BaseEntity {

    private static final long serialVersionUID = -2966717162928496537L;
    @ApiModelProperty(value = "用户id")
    private Integer id; //用户id
    @ApiModelProperty(value = "账户名")
    private String username;    //账户名
//    @ApiModelProperty(value = "密码")
    private String password;    //密码
//    @ApiModelProperty(value = "密码盐")
    private String salt;    //密码盐
    @ApiModelProperty(value = "性别")
    private Integer gender; // 性别
    @ApiModelProperty(value = "手机号")
    private String phone;   //手机号
    @ApiModelProperty(value = "昵称")
    private String nickname;    //昵称
    @ApiModelProperty(value = "头像")
    private String avatar;  //头像
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;   //是否删除
    @ApiModelProperty(value = "角色类型 （0-普通用户，1-商家，2-社团，3-社联，4-超级管理员）")
    private Integer types;  // 角色类型 （0-普通用户，1-商家，2-社团，3-社联，4-超级管理员）
//    @ApiModelProperty(value = "用户外键")
    private String TUserId;  // 用户外键
    @ApiModelProperty(value = "余额")
    private Integer balance; // 余额
    @ApiModelProperty(value = "学生组织外键")
    private String massOrganizationId;  //学生组织外键
    @ApiModelProperty(value = "申请备注")
    private String note; //申请备注
    @ApiModelProperty(value = "是否加入组织状态（0-未加入；1-加入）")
    private Integer organizationTypes;//是否加入组织状态（0-未加入；1-加入）

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getTypes() {
        return types;
    }

    public void setTypes(Integer types) {
        this.types = types;
    }

    public String getTUserId() {
        return TUserId;
    }

    public void setTUserId(String TUserId) {
        this.TUserId = TUserId;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public String getMassOrganizationId() {
        return massOrganizationId;
    }

    public void setMassOrganizationId(String massOrganizationId) {
        this.massOrganizationId = massOrganizationId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getOrganizationTypes() {
        return organizationTypes;
    }

    public void setOrganizationTypes(Integer organizationTypes) {
        this.organizationTypes = organizationTypes;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", gender=" + gender +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", avatar='" + avatar + '\'' +
                ", isDelete=" + isDelete +
                ", types=" + types +
                ", TUserId='" + TUserId + '\'' +
                ", balance=" + balance +
                ", massOrganizationId='" + massOrganizationId + '\'' +
                ", note='" + note + '\'' +
                ", organizationTypes=" + organizationTypes +
                '}';
    }
}
